<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户列表</title>
    <style>
    </style>
</head>
<body>
当前登录用户:<a href="${pageContext.request.contextPath}/user/detail" title="点我查看详情">${userInfo.nickname}</a>
<table align="center" border="1">
    <thead>
    <tr>
        <th>id</th>
        <th>用户名</th>
        <th>密码</th>
        <th>昵称</th>
        <th>年龄</th>
        <th>生日</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${userList}" var="item">
    <tr>
        <td>${item.id}</td>
        <td>${item.username}</td>
        <td>${item.password}</td>
        <td>${item.nickname}</td>
        <td>${item.age}</td>
        <td><fmt:formatDate value="${item.birthday}" pattern="yyyy-MM-dd"></fmt:formatDate></td>
    </tr>
    </c:forEach>
    </tbody>
</table>
</body>
</html>
